<%@ page language="java" import="java.util.*" contentType="text/html; charset=utf-8"%>
<%@ include file="/WEB-INF/view/layouts/cms/default.jsp"%>
<!DOCTYPE HTML>
<html>
<head>
<title>创建商品信息 - 飞购Fly-Shopping</title>
<link rel="stylesheet" href="${ctxsta}/common/icheck/flat/green.css" />
<link rel="stylesheet"
	href="${ctxsta}/common/bootstrap/css/bootstrap.min.css" />
<link rel="stylesheet"
	href="${ctxsta}/common/font-awesome/css/font-awesome.min.css" />
<link rel="stylesheet" href="${ctxsta}/cms/css/animate.css" />
<link rel="stylesheet" href="${ctxsta}/common/layer/mobile/need/layer.css" />
<link rel="stylesheet" href="${ctxsta}/cms/css/style.css" />
<script src="${ctxsta}/common/jquery/jquery-3.2.0.min.js"></script>
<script src="${ctxsta}/common/bootstrap/js/bootstrap.min.js"></script>
<script src="${ctxsta}/common/metismenu/metisMenu.min.js"></script>
<script src="${ctxsta}/common/slimscroll/jquery.slimscroll.min.js"></script> 
</head>

<body class="gray-bg">
<div class="wrapper wrapper-content">
  <div class="row">
    <div class="col-sm-12">
      <div class="ibox float-e-margins">
        <div class="ibox-title">
          <h5>创建商品信息<small> 商品信息时应当遵循合法、正当、必要的原则，明示目的、方式和范围。</small></h5>
          <div class="ibox-tools"> <a class="collapse-link"><i class="fa fa-chevron-up"></i></a> <a class="close-link"><i class="fa fa-times"></i></a> </div>
        </div>
        <div class="ibox-content">
          <form id="form" class="form-horizontal" encType="multipart/form-data">
           <div class="form-group m-t">
              <label class="col-sm-2 col-xs-offset-1 control-label">上传商品图片：</label>
              <div class="col-sm-6">
                <input type="file" name="file" id="file" class="btn btn-primary"  style="display: inline-block;"/>
                <img id="img1" src="" style="width:90px;height:90px;">
              </div>
            </div>
            <div class="hr-line-dashed"></div>
            <div class="form-group m-t">
              <label class="col-sm-2 col-xs-offset-1 control-label">商品编号：</label>
              <div class="col-sm-6">
                <input type="text" maxlength="13" class="form-control" name="productNumber" id="productNumber">
              </div>
            </div>
            <div class="hr-line-dashed"></div>
            <div class="form-group">
              <label class="col-sm-2 col-xs-offset-1 control-label">商品名称：</label>
              <div class="col-sm-6">
                <input type="text" maxlength="18" class="form-control" name="name" id="name">
              </div>
            </div>
            <div class="hr-line-dashed"></div>
             <div class="form-group">
              <label class="col-sm-2 col-xs-offset-1 control-label">商品标签：</label>
              <div class="col-sm-6 text-center">
                <label class="radio-inline">
                  <input type="radio"  name="label.labelId" value="1" >
                  热销</label>
                <label class="radio-inline">
                  <input type="radio" name="label.labelId" value="2" checked="checked" >
                  新品</label>
                <label class="radio-inline">
                  <input type="radio" name="label.labelId" value="3">
                  现货</label>
                <label class="radio-inline">
                  <input type="radio" name="label.labelId" value="4">
                  有赠品</label>
              </div>
            </div>
            <div class="hr-line-dashed"></div>
            <div class="form-group">
              <label class="col-sm-2 col-xs-offset-1 control-label">显示积分：</label>
              <div class="col-sm-6">
                <input type="text" maxlength="11" class="form-control" name="showScore" id="showScore">
              </div>
            </div>
            <div class="hr-line-dashed"></div>
            <div class="form-group">
              <label class="col-sm-2 col-xs-offset-1 control-label">显示价格：</label>
              <div class="col-sm-6">
                <input type="text" maxlength="11" class="form-control" name="showPrice" id="showPrice">
              </div>
            </div>
            <div class="hr-line-dashed"></div>
            <div class="form-group">
              <label class="col-sm-2 col-xs-offset-1 control-label">商品简介：</label>
              <div class="col-sm-6"> 
                <input type="text" class="form-control" name="introduce" id="introduce">
              </div>
            </div>
            <div class="hr-line-dashed"></div>
            <div class="form-group">
              <label class="col-sm-2 col-xs-offset-1 control-label">是否置顶：</label>
              <div class="col-sm-6 text-center">
                <label class="radio-inline">
                  <input type="radio"  name="showInTop" value="1" >
                  是</label>
                <label class="radio-inline">
                  <input type="radio" name="showInTop" value="0" checked="checked">
                  否</label>
              </div>
            </div>
            <div class="hr-line-dashed"></div>
            <div class="form-group">
              <label class="col-sm-2 col-xs-offset-1 control-label">是否导航：</label>
              <div class="col-sm-6 text-center">
                <label class="radio-inline">
                  <input type="radio"  name="showInNav" value="1" >
                  是</label>
                <label class="radio-inline">
                  <input type="radio" name="showInNav" value="0" checked="checked">
                  否</label>
              </div>
            </div>
            <div class="hr-line-dashed"></div>
            <div class="form-group">
              <label class="col-sm-2 col-xs-offset-1 control-label">是否热门：</label>
              <div class="col-sm-6 text-center">
                <label class="radio-inline">
                  <input type="radio"  name="showInHot" value="1" >
                  是</label>
                <label class="radio-inline">
                  <input type="radio" name="showInHot" value="0" checked="checked">
                  否</label>
              </div>
            </div>
            <div class="hr-line-dashed"></div>
            <div class="form-group">
              <label class="col-sm-2 col-xs-offset-1 control-label">是否下架：</label>
              <div class="col-sm-6 text-center">
                <label class="radio-inline">
                  <input type="radio"  name="showInShelve" value="1" >
                  上架</label>
                <label class="radio-inline">
                  <input type="radio" name="showInShelve" value="0" checked="checked">
                  下架</label>
              </div>
            </div>
            <div class="hr-line-dashed"></div>
            <div class="form-group">
              <label class="col-sm-2 col-xs-offset-1 control-label">搜索关键词：</label>
              <div class="col-sm-6">
                <input type="text" maxlength="11" class="form-control" name="searchKey" id="searchKey">
              </div>
            </div>
            <div class="hr-line-dashed"></div>
            <div class="form-group">
              <div class="col-sm-12 text-center">
                <button class="btn btn-primary" onclick="create_productinfo();" type="submit">提交</button>
              </div>
            </div>
          </form>
        </div>
      </div>
    </div>
  </div>
</div>
<myfooter> 
  <!-- iCheck --> 
  <script src="${ctxsta}/common/icheck/icheck.min.js"></script> 
  <!-- bootstrapvalidator-master前端验证框架 --> 
  <script src="${ctxsta}/common/bootstrapvalidator/js/bootstrapValidator.min.js"></script> 
  <!-- 自定义js --> 
  <script src="${ctxsta}/cms/js/os_product_create.js"></script> 
</myfooter>
</body>
</html>
